package com.example.demo.service.impl;

import com.example.demo.entity.CrSalesAccount;
import com.example.demo.mapper.CrSalesAccountMapper;
import com.example.demo.service.CrSalesAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;

import java.math.BigDecimal;
@Service
public class CrSalesAccountServiceImpl implements CrSalesAccountService {

    @Autowired
    CrSalesAccountMapper crSalesAccountMapper;

    @Override
    public int insertAccount(CrSalesAccount ca) {
        return crSalesAccountMapper.insertAccount(ca.getId(),ca.getPartsOrderId(),ca.getPartsname(),ca.getPartsnum(),ca.getPartsunit(),ca.getPartsprice(),ca.getPartstotal(),ca.getCreateTime());
    }


}
